package com.zhengxin.one.mapper;

import com.zhengxin.one.entity.SRole;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface RoleMapper {
    //授权查询
    List<SRole> rolefound(String name);
    //添加授权
    int insertRole(String staff_id,String name,String user_id,String company_id);
    //添加授权
    int insertRoleM(String staff_id,String menu_id,String menu_name);
    //取消授权
    Boolean deleRole(String name ,String staff_id);
    //取消授权
    int deleRoleM(String staff_id);
    //编辑授权
    int updataRole(String menu_id,String menu_name,String staff_id);
}
